// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App'
import router from './router'
import axios from 'axios'  //引入：axios

Vue.use(ElementUI)

Vue.config.productionTip = false

//定义Vue 的原型属性$ajax 值为axios
Vue.prototype.$ajax = axios

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,   //路由 注入到根实例中
  // components: { App },
  // template: '<App/>'    1.0版本的写法
  render:h=> h(App)         //2.0版本的写法
})
